package com.qf.controller;

import com.qf.pojo.entity.QfTeach;
import com.qf.pojo.resp.BaseResp;
import com.qf.service.QfTeachService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("课程老师控制层")
@RestController
@RequestMapping("/teacher")
public class QfTeachController {
    @Autowired
    QfTeachService qfTeachService;
    @GetMapping("/findAll")
    @ApiOperation(value = "查询所有课程老师")
    public BaseResp findAll(){
        return qfTeachService.findAll();
    }
}
